<form id="pagerForm" method="post" action="/admin/system/index">
	<input type="hidden" name="status" value="">
	<input type="hidden" name="keywords" value="" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<?php echo $this->numPerPage; ?>" />
	<input type="hidden" name="orderField" value="" />
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/admin/system/add" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="/admin/system/del?id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="/admin/system/edit?id={sid_user}" target="navTab"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="120" align="center">登录名</th>
				<th align="center">Email</th>
				<th width="180" align="center">添加时间</th>
				<th width="180" align="center">最后登录时间</th>
				<th width="80" align="center">用户类型</th>
				<th width="80" align="center">用户状态</th>
			</tr>
		</thead>
		<tbody>
	    <?php 
	     if(is_array($this->list)){
	     	foreach ( $this->list as $val ){
	    ?>
			<tr target="sid_user" rel="<?php echo $val['uid']; ?>">
				<td><?php echo $val['username']; ?></td>
				<td><?php echo $val['email']; ?></td>
				<td align="center"><?php echo date('Y-m-d H:i:s', $val['addtime']); ?></td>
				<td align="center"><?php if( $val['last_login_time'] > 0 ){ echo date('Y-m-d H:i:s', $val['last_login_time']); }else{ echo '未登陆过'; }; ?></td>
				<td align="center"><?php if( $val['user_type'] == 1 ){ echo '<span style="color:red">管理员</span>'; }else{ echo '普通用户'; }; ?></td>
				<td align="center"><?php if( $val['status'] == 1 ){ echo '<span style="color:green">可用</span>'; }else{ echo '<span style="color:gray">禁用</span>'; }; ?></td>
			</tr>										
		<?php }} ?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
			    <option value="10">10</option>
				<option value="20" selected>20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共<?php echo $this->totalCount; ?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $this->totalCount; ?>" numPerPage="<?php echo $this->numPerPage; ?>" pageNumShown="10" currentPage="<?php echo $this->currentPage; ?>"></div>

	</div>
</div>
